package com.heima.feign.user;

import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author ItZheng
 * @Date 2023/6/28 14:52
 * @Version 1.5
 */
@FeignClient("leadnews-user")
public interface IUserFeignClient {

    /**
     * 根据用户Id查询信息
     * @param id
     * @return
     */
    @GetMapping("/api/v1/user/findById/{id}")
    ApUser findUserById(@PathVariable("id") Integer id);

}
